package com.mdd.common.entity.yangyangLeadingEnterprise.common;

import lombok.Data;

import java.io.Serializable;

@Data
public class ErrorCode implements Serializable {
    private Integer code ;
    private String message ;

    public ErrorCode setCode(Integer code) {
        this.code = code;
        return this;
    }

    public ErrorCode setMessage(String message) {
        this.message = message;
        return this;
    }

    @Override
    public String toString() {
        return "ErrorCode{" +
                "code=" + code +
                ", message='" + message + '\'' +
                '}';
    }
}
